DeleteDirectory

Deletes a directory.

Syntax

DeleteDirectory("DirectoryPath", Recursive)

Arguments

Argument Description
DirectoryPath Full path to the directory to delete. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.
Recursive Recursive deletion. True deletes all subdirectories and files. False deletes only the specified directory, which must be empty. If not specified, False is used.

Example

DeleteDirectory("C:\\Testing\\TestData", True)